!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},t.delay=function(e){return new Promise((function(t){setTimeout((function(){return t(!0)}),e)}))},t.secondsToHMMSS=function(e){var t=new Date(1e3*Math.floor(Number(e))).toISOString().substr(11,8);return t.startsWith("00:")&&(t=t.replace(/00:/,"")),t},t.getFormatedDateFromTimestamp=function(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})};var r=function(e){var t=e.toString();return 1===t.length?"0"+t:t};t.parsePageFeedMacros=function(e,t){var n=new Date;t&&n.setDate(n.getDate()-1);var i=n.getFullYear()+"-"+r(n.getMonth()+1)+"-"+r(n.getDate());return e.replace("<%feedDate%>",i)},t.createHtmlElementFromHtmlString=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild},t.getRandomNumberInRange=function(e,t){return Math.random()*(t-e)+e},t.isIpad=function(){return!!navigator.platform.match(/iPad/)},t.isIE11=function(){return!!window.MSInputMethodContext&&!!document.documentMode},t.iOS=function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.LOADING_ANIMATION_DELAY=500,t.PLAYER_CONTAINER_CLASS="remixd-audio-player",t.PLAYER_SCRIPT_ID="remixd-audio-player-script",t.PLAYER_IFRAME_CLASS="remixd-frame",t.JWPLAYER_CONTAINER_ID="rmxd-audio-track",t.GHOST_PLAYER_CONTAINER_ID="rmxd-audio-back-track",t.PLAYER_FLOATING_CLASS="floating",t.PRIMARY_COLOR_VAR="--rmxd-primary",t.SECONDARY_COLOR_VAR="--rmxd-secondary",t.BACKGROUND_COLOR_VAR="--rmxd-bg-color",t.TEXT_COLOR_VAR="--rmxd-text-color",t.MAIN_CONTROL_COLOR_VAR="--rmxd-play-color",t.FONT_NAME_VAR="--rmxd-font",t.MUTE_STATE_CLASSNAME="muted",t.DEFAULT_AD_HEADER="Article will continue after ad",t.PLAYER_WRAPPER_CONTAINER_ID="playerContentWrapper",t.PLAYER_MAIN_CONTENT_ID="playerMainContent",t.LISTEN_TEXT_CONTROL_ID="listenText",t.CONTROL_IDS=((r={})[o.PlayerControl.PlayPause]="playerPlayPause",r[o.PlayerControl.PlayCTA]="playerCTA",r[o.PlayerControl.MuteUnmute]="playerMuteUnmute",r[o.PlayerControl.Rewind]="playerRewind",r[o.PlayerControl.Forward]="playerForward",r[o.PlayerControl.PreviousSong]="playerPrevious",r[o.PlayerControl.NextSong]="playerNext",r[o.PlayerControl.Volume]="playerVolumeControl",r[o.PlayerControl.VolumeBar]="playerVolumeBar",r[o.PlayerControl.Progress]="playerProgressControl",r[o.PlayerControl.ProgressBar]="playerProgressBar",r[o.PlayerControl.TimeRemaining]="playerRemainingDuration",r[o.PlayerControl.TimePassed]="playerProgressDuration",r[o.PlayerControl.Title]="playerTitleContainer",r),t.PLAYER_STATE_CLASSES=((i={})[o.PlayerState.Loading]="loading",i[o.PlayerState.Loaded]="loaded",i[o.PlayerState.Processing]="processing",i[o.PlayerState.Playing]="playing",i[o.PlayerState.Paused]="paused",i[o.PlayerState.AdPlaying]="ad-playing",i[o.PlayerState.AdPaused]="ad-paused",i[o.PlayerState.Buffering]="buffering",i),t.DEFAULT_VOLUME=50,t.DEFAULT_JUMP_TIME=10,t.PROGRESS_BAR_SIZE_MULTIPLIER=1e4,t.BUFFERING_STATE_DELAY=250,t.PROCESSING_CHECK_INTERVAL=3e3,t.PRE_ROLL_DELAY=-.43,t.DEFAULT_JWPLAYER_CONFIG={mute:!1,preload:"none",height:0,width:0,volume:t.DEFAULT_VOLUME},t.RELEVANT_AD_ERROR_CODES=[10100,10101,10102,10900,60002,60003,60007,60900],t.OPEN_SPEED_MENU_CONTROL_ID="playerSpeedBtn",t.CLOSE_SPEED_MENU_CONTROL_ID="close-speed-menu-button",t.SPEED_SELECTION_COMPONENT_ID="speed-menu",t.SPEED_MENU_OPTION_LIST_ID="SpeedMenuOptions",t.SPEED_MENU_OPTION="speed-menu-item",t.SPEED_MENU_OPTION_ACTIVE="speed-menu-item--active",t.FEED_TITLE_MACRO="<%feedTitle%>",t.FEED_DATE_MACRO="<%feedDate%>"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STANDARD=!1,t.DEDICATED=!1,t.LARGE=!1,t.DAILYMAIL=!1,t.API_ENDPOINT="https://api.remixd.com",t.PUBCAST_ENDPOINT="https://pubcast-files.remixd.com",t.EVENT_LOGGING_ENDPOINT="https://player-files.remixd.com/ping.gif",t.VAST_EXCHANGE_ENDPOINT="https://exchange.remixd.com/vast/auction",t.SYNC_SCRIPT_ENDPOINT="https://tags.remixd.com/player/syncv1.js",t.FEEDS_ENDPOINT="https://feeds.remixd.com",t.FILLS_ENDPOINT="https://tags.remixd.com/player/v5/fills.js"},function(module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]t.length&&(t=n),t}),"");return this.configs.find((function(e){return e.section===t}))},PlayerBuilder.prototype.getPageFeed=function(e,t){var n=t.hostname.split(".")[1],r=e.externalFeedDomain||n,i=t.search;return request_helpers_1.getFeedUrl(r,i)},PlayerBuilder.prototype.buildPlayer=function(e,t,n){var r=e.host,i=e.href,o=request_helpers_1.getSection(i,r);"dedicated"===(t=t||this.getConfig(o)).playerType&&(t.pageFeed=this.getPageFeed(t,e),t.dedicatedPageUrl=i),t.isMobile=this.isMobileDevice(navigator.userAgent,this.targetWindow.orientation);var a=document.getElementById(constants_1.PLAYER_SCRIPT_ID);this.playerContainerWrapper=new player_container_wrapper_1.PlayerContainerWrapper(a,t,n)},PlayerBuilder.prototype.exposeAPI=function(){var e=this,t=function(){e.playerContainerWrapper&&(e.playerContainerWrapper.removeOldPlayer(),e.playerContainerWrapper=null)};this.targetWindow.loadRemixdPlayer=function(){t(),e.initiatePlayerBuildout()},this.targetWindow.removeRemixdPlayer=function(){t()},this.targetWindow.reloadRemixdPlayer=function(){t(),e.initiatePlayerBuildout()},this.targetWindow.dispatchEvent(new Event("remixdplayerready"))},PlayerBuilder}(),playerBuilder=new PlayerBuilder(window);"undefined"!=typeof window&&("complete"===document.readyState?playerBuilder.initiatePlayerBuildout():window.addEventListener("load",(function(){return playerBuilder.initiatePlayerBuildout()})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Loading=0]="Loading",e[e.Loaded=1]="Loaded",e[e.Processing=2]="Processing",e[e.Playing=3]="Playing",e[e.Paused=4]="Paused",e[e.AdPlaying=5]="AdPlaying",e[e.AdPaused=6]="AdPaused",e[e.Buffering=7]="Buffering"}(t.PlayerState||(t.PlayerState={})),function(e){e.PlayerImpression="playerImpression",e.Loading="loading",e.Loaded="loaded",e.Play="play",e.Played="played",e.LoadingArticleAudio="loadingArticleAudio",e.AdCall="adCall",e.AdImpression="adImpression",e.AdError="adError",e.AdPlayed="adPlayed",e.AdPause="adPause",e.AdComplete="adComplete",e.Pause="pause",e.Paused="paused",e.Seek="seek",e.Mute="mute",e.VolumeChange="volumeChange",e.SpeedChange="speedChange",e.Complete="complete",e.PageClosed="pageClosed",e.ExchangeError="exchangeError",e.Listen="listen"}(t.PlayerEvent||(t.PlayerEvent={})),function(e){e[e.PlayPause=0]="PlayPause",e[e.PlayCTA=1]="PlayCTA",e[e.MuteUnmute=2]="MuteUnmute",e[e.Volume=3]="Volume",e[e.VolumeBar=4]="VolumeBar",e[e.Rewind=5]="Rewind",e[e.Forward=6]="Forward",e[e.PreviousSong=7]="PreviousSong",e[e.NextSong=8]="NextSong",e[e.Progress=9]="Progress",e[e.ProgressBar=10]="ProgressBar",e[e.TimeRemaining=11]="TimeRemaining",e[e.TimePassed=12]="TimePassed",e[e.Title=13]="Title"}(t.PlayerControl||(t.PlayerControl={})),function(e){e.Idle="idle",e.Buffering="buffering",e.Playing="playing",e.Paused="paused",e.Error="error",e.Complete="complete"}(t.JWPlayerState||(t.JWPlayerState={})),function(e){e.PlaylistItemPlay="playlistitemplay",e.PlaylistItemPause="playlistitempause",e.TitleChange="titlechange",e.ResetPlayer="resetplayer"}(t.CustomEvents||(t.CustomEvents={}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0-t&&e.bottom<=(this.targetWindow.innerHeight||this.targetDocument.documentElement.clientHeight)+t?(this.iframe.classList.remove(l.PLAYER_FLOATING_CLASS),this.iframe.contentWindow.document.body.removeAttribute("data-floating")):(this.iframe.classList.add(l.PLAYER_FLOATING_CLASS),this.iframe.contentWindow.document.body.setAttribute("data-floating",""))}},e.prototype.appendIframeElement=function(e,t){var n,r=document.createElement("div");if(r.classList.add(l.PLAYER_CONTAINER_CLASS),"dedicated"!==t.playerType&&(r.style.position="relative"),this.iframe=document.createElement("iframe"),this.iframe.classList.add(l.PLAYER_IFRAME_CLASS),this.iframe.style.border="none",r.appendChild(this.iframe),t.placementSelector){var i=t.placementSelector.substring(1);"#"===t.placementSelector.charAt(0)?n=this.targetDocument.getElementById(i):"."===t.placementSelector.charAt(0)&&(n=this.targetDocument.getElementsByClassName(i)[0])}if(n)switch(t.placementPosition){case"before":n.parentElement.insertBefore(r,n);break;case"inside":n.prepend(r);break;case"after":n.parentElement.insertBefore(r,n.nextSibling);break;case"":default:e.parentElement.insertBefore(r,e)}else e.parentElement.insertBefore(r,e);this.showLoadingAnimation(r,t),this.iframe.setAttribute(t.isMobile?"data-mobile":"data-desktop","")},e.prototype.getPrefixedColor=function(e){return e.startsWith("#")?e:"#"+e},e.prototype.appendLoadingDivStyle=function(e){var t=this.getPrefixedColor(e.fg),n=this.getPrefixedColor(e.mainControlColor),r=this.getPrefixedColor(e.textColor),i=".remixd-loading{position:absolute;z-index:10;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;padding:0 12.5px;background:"+this.getPrefixedColor(e.bgColor)+"}.remixd-loading-text{margin:0 0 0 1rem;color:"+r+';font-size:20px;font-family:"'+e.font+'", "Barlow";font-weight:600}.remixd-loading-control{flex:0 0 55px;width:55px;height:55px;display:flex;align-items:center;justify-content:center;background-color:'+t+";color:"+n+");border-radius:50%}.remixd-dots{display:flex;align-items:flex-start;justify-content:space-between;width:30px;height:12px}.remixd-dot{width:6px;height:6px;border-radius:50%;background:"+n+";position:relative;transform:translateY(0);transition:all .33s;animation:loading 1s infinite}.remixd-dot:nth-of-type(2){animation-delay:.125s}.remixd-dot:nth-of-type(3){animation-delay:.25s}@keyframes loading{50%{transform:translateY(100%)}}",o=this.targetDocument.getElementById(d);o.innerText=o.innerText+i},e.prototype.showLoadingAnimation=function(e,t){var n=this;"dedicated"!==t.playerType&&t.initializeOnLoad&&(this.loadingAnimationTimeoutHandle=setTimeout((function(){n.buildLoadingAnimation(e,t)}),l.LOADING_ANIMATION_DELAY))},e.prototype.buildLoadingAnimation=function(e,t){if(!this.iframe.contentWindow.document.body.innerHTML){this.appendLoadingDivStyle(t),this.loadingAnimationDiv=document.createElement("div"),this.loadingAnimationDiv.classList.add("remixd-loading");var n=document.createElement("div");n.classList.add("remixd-loading-control");var r=document.createElement("div");r.classList.add("remixd-dots"),Array.from(Array(3),(function(){return document.createElement("div")})).forEach((function(e){e.classList.add("remixd-dot"),r.appendChild(e)})),n.appendChild(r);var i=document.createElement("p");i.classList.add("remixd-loading-text"),i.innerText="Loading your audio article",this.loadingAnimationDiv.appendChild(n),this.loadingAnimationDiv.appendChild(i),e.appendChild(this.loadingAnimationDiv)}},e.prototype.removeLoadingAnimation=function(){this.loadingAnimationTimeoutHandle&&(clearTimeout(this.loadingAnimationTimeoutHandle),this.loadingAnimationTimeoutHandle=null),this.loadingAnimationDiv&&(this.loadingAnimationDiv.parentElement.removeChild(this.loadingAnimationDiv),this.loadingAnimationDiv=null)},e.prototype.appendContainerStyle=function(e){var t=this.targetDocument.createElement("style");t.id=d,this.headElement.appendChild(t),t.type="text/css",t.appendChild(this.targetDocument.createTextNode(e.containerStyle))},e.prototype.buildPlayer=function(e,t){return i(this,void 0,void 0,(function(){var n,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.fetchPlayerFiles(e)];case 1:if(n=o.sent(),r=n[0],i=n[1],!r)throw"Failed to load the player template.";return this.registerIframeEvents(e,i,t),this.appendIframeContent(e,r),[2]}}))}))},e.prototype.fetchPlayerFiles=function(e){return i(this,void 0,void 0,(function(){var t,n,r;return o(this,(function(i){switch(i.label){case 0:return t="dedicated"===e.playerType,n=fetch(e.templateUrl,{mode:"cors"}).then((function(e){return e.text()})),r=t?this.fetchExternalFeed(e.pageFeed,e.externalFeed):Promise.resolve(null),[4,Promise.all([n,r]).then((function(e){return a(e)})).catch((function(e){return console.error(e)}))];case 1:return[2,i.sent()||null]}}))}))},e.prototype.appendIframeContent=function(e,t){var n,r=this;n='